# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxdmcp
pkgver=1.1.4
pkgrel=3
pkgdesc="X11 Display Manager Control Protocol library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="xorgproto libbsd-dev util-macros xmlto"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXdmcp-$pkgver.tar.xz"
builddir="$srcdir/libXdmcp-$pkgver"

# secfixes:
#   1.1.2-r3:
#     - CVE-2017-2625

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
83b384d43bfb034c395f83f97d1c6e73aa3d5faa8f8756b08e697c0b9c3c87189651b51e8213fbd1f5f9cbc2d8136cbf143627481744345d78cfe0ff2ad074a9  libXdmcp-1.1.4.tar.xz
"
